package com.yzd.learnjava.generics;

import java.util.ArrayList;

import com.yzd.learnjava.util.Print;

public class TupleList<A,B,C,D> extends ArrayList<FourTuple<A, B, C, D>> {
	
	public static void main(String[] args) {
		TupleList<Vehicle, Amphibian, String, Integer> t1 = new TupleList<Vehicle, Amphibian, String, Integer>();
		t1.add(TupleTest.h());
		t1.add(TupleTest.h());
		
		for(FourTuple<Vehicle, Amphibian, String, Integer> i : t1) {
			Print.print(i);
		}
	}
}
